<template>
    <div class="block">
        <span class="demonstration">使用 value-format</span>
        <div class="demonstration">值：{{ value2 }}</div>
        <el-date-picker
                v-model="value2"
                type="date"
                placeholder="选择日期"
                format="yyyy 年 MM 月 dd 日"
                value-format="yyyy-MM-dd">
        </el-date-picker>
    </div>
</template>

<script>

    export default {
        name: "Data",
        data() {
            return {
                value2: '',
            };
        },
        methods: {
            getData(){
                console.log(this.value2 + "=======");
            }
        }
    }
</script>

<style scoped>

</style>